package com.iszhouhua.blog.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.iszhouhua.blog.mapper.PictureMapper;
import com.iszhouhua.blog.mapper.UserMapper;
import com.iszhouhua.blog.model.Picture;
import com.iszhouhua.blog.model.User;
import com.iszhouhua.blog.service.PictureService;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.stereotype.Service;

/**
 * 图片服务实现类
 *
 * @author Xiaojin
 * @date 2020/10/10
 */
@Service
@CacheConfig(cacheNames = "picture")
public class PictureServiceImpl extends ServiceImpl<PictureMapper, Picture> implements PictureService {

  @Override
  public Picture findPictureById(Long id) {
    Picture picture = baseMapper.selectById(id);
    return picture;
  }
}
